package com.ihr360.payroll.entity.staff;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ihr360.payroll.type.SalaryProfileChangeType;

import java.util.Date;

/**
 * @author richey
 */
public class SalaryProfileEntity {

    private CompanySalaryProfileEntity companySalaryProfile;

    /**
     * key 值为 SalaryProfileField的code值
     */
    private SalaryProfileItemsWrapperEntity wrapper;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date effectiveAt;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date inValidAt;

    private SalaryProfileChangeType changeType;

    public CompanySalaryProfileEntity getCompanySalaryProfile() {
        return companySalaryProfile;
    }

    public void setCompanySalaryProfile(CompanySalaryProfileEntity companySalaryProfile) {
        this.companySalaryProfile = companySalaryProfile;
    }

    public SalaryProfileItemsWrapperEntity getWrapper() {
        return wrapper;
    }

    public void setWrapper(SalaryProfileItemsWrapperEntity wrapper) {
        this.wrapper = wrapper;
    }

    public Date getEffectiveAt() {
        return effectiveAt;
    }

    public void setEffectiveAt(Date effectiveAt) {
        this.effectiveAt = effectiveAt;
    }

    public Date getInValidAt() {
        return inValidAt;
    }

    public void setInValidAt(Date inValidAt) {
        this.inValidAt = inValidAt;
    }

    public SalaryProfileChangeType getChangeType() {
        return changeType;
    }

    public void setChangeType(SalaryProfileChangeType changeType) {
        this.changeType = changeType;
    }
}
